package com.example.demo.pojo.vo;

import com.example.demo.pojo.entity.Subject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 学科信息
 * @author 21172
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SubjectVO {
    private Integer id;
    private String subjectName;
    private Integer labelId;
    private Integer fileId;
    public void initSubject(Subject subject){
        this.id=subject.getId();
        this.subjectName=subject.getSubjectName();
        this.labelId=subject.getLabelId();
        this.fileId=subject.getFileId();
    }
}
